ci(deploy): admin gh-pages デプロイ前に ssh-agent ソケットを解放#1105
Merged
Conversation
The admin SPA deploy to smalruby.app/admin/ (EPIC #1073) runs a second peaceiris/actions-gh-pages in the same job. That action binds a fixed SSH_AUTH_SOCK (/tmp/ssh-auth.sock) when using deploy_key, and the main smalruby.app deploy above leaves its ssh-agent running, so the admin deploy failed with 'unix_listener: cannot bind to path /tmp/ssh-auth.sock: Address already in use'. Free the socket between the two deploys. Surfaced on the first develop run that included the admin deploy step (PR #1094 merge).
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/ci/fix-admin-deploy-ssh-agent/ |
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 19, 2026
…-deploy-ssh-agent ci(deploy): admin gh-pages デプロイ前に ssh-agent ソケットを解放
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #1094 マージ後の develop デプロイ失敗(build-and-deploy)の修正。
原因: admin SPA の smalruby.app/admin/ デプロイ(2 つ目の peaceiris/actions-gh-pages)が、先行する本体デプロイの ssh-agent が握ったままの
/tmp/ssh-auth.sockに bind できずAddress already in useで失敗。admin デプロイステップが develop で初めて走ったため顕在化した。修正: 2 つのデプロイの間で
pkill ssh-agent+ ソケット削除を挟む。(workflow ファイルのため Bot 権限では push 不可 → 人間名義で作成)
🤖 Generated with Claude Code